package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.AnalysisRequest;
import com.ytjj.qmyx.admin.model.response.DataResponse;
import com.ytjj.qmyx.mall.model.AnalysisStatistics;
import com.ytjj.qmyx.mall.model.Channel;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface AnalysisDao {

    List<AnalysisStatistics> selectList(AnalysisRequest analysisRequest);

    void saveDataList(@Param("allChannelDataList") List<DataResponse> allChannelDataList);

    String findPlatform(String channel);

    void saveDataModuleList(@Param("moduleChannelDataList") List<DataResponse> moduleChannelDataList);

    void delData(LocalDate localDate);

    void delDataModule(LocalDate localDate);

    List<DataResponse> findDataList(@Param("date") String date, @Param("channel") String channel);

    List<DataResponse> findDataInfo(@Param("platform") String platform, @Param("channel") String channel, @Param("createTime") String createTime);

    List<DataResponse> findModuleDataList(@Param("date") String date, @Param("channel") String channel);

    List<Channel> findChannel(@Param("searchDate") String searchDate, @Param("platform") String platform);
}
